Skip to content

feat(defaultActive): set correct filter after clicking on clear#642

Open
karelhala wants to merge 1 commit intopatternfly:mainfrom
karelhala:default-active
Open

feat(defaultActive): set correct filter after clicking on clear#642
karelhala wants to merge 1 commit intopatternfly:mainfrom
karelhala:default-active

Conversation

@karelhala
Copy link
Copy Markdown
Collaborator

Description

When user clicks on clear filters the previously selected filter remains selected. This is unintuitive as we are basically clearing the whole filter section. This PR fixes it by activating first filter in the list. There's also an option to provide default filter which will be used when consumer provides it and user clears the filters.

Fixes 513

@karelhala karelhala requested a review from nicolethoen April 29, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataViewFilters dropdown: Reset active attribute to first item after the filters are cleared

1 participant